using System;
using System.Collections.Generic;
using etcetera.Mvc.UI.Calendar;

namespace Samples.Models
{
    public class CalendarViewModel
    {
        public int Year { get; set; }
        public int NextYear { get { return new DateTime(Year, Month, 1).AddMonths(1).Year; } }
        public int PrevYear { get { return new DateTime(Year, Month, 1).AddMonths(-1).Year; } }
        public int Month { get; set; }
        public int NextMonth { get { return new DateTime(Year, Month, 1).AddMonths(1).Month; } }
        public int PrevMonth { get { return new DateTime(Year, Month, 1).AddMonths(-1).Month; } }
        public IEnumerable<ICalendarEntry> CalendarEntries { get; set; }
    }
}